 

1. You need Stata and R to reproduce the results of this study.

2. Go to the "Command_Files" folder and double-click on "0_Master.do" file, and run the code.  This will create and save all output produced by Stata in the Outputs folder.    

2. Go to the "Command_Files" folder and double-click on "0_Master.R" file, and run the code.  This will create and save all output produced by R in the Outputs folder.    

Note 1: Double-clicking the two Master files in the Command_Files folder opens Stata and R and makes the Command_Files folder the current/active directory.  
        The code uses relative paths and therefore there is no need to change any reference to a file path in the code.
        However, if for some reason, the Command_Files folder is not the active directory, you must point the "cd" command in the stata code and the "setwd()" command in R to the location of the Command_Files folder.
Note 2: Outputs folder is initially empty, but will be populated once the code is executed.

3. There is a "Comparison_Output_Files" within the Outputs folder that you can use to compare the results you generate from the code so you will feel confident that you have executed the code correctly.  


********************************************************************************
********************************************************************************
General information
********************************************************************************
********************************************************************************

Article Citation:

Title of the paper: Relational State Building in Areas of Limited Statehood: Experimental Evidence on the Attitudes of the Police
Journal:  American Political Science Review

Author(s): Sabrina Karim

	 *Corresponding author: Sabrina Karim
	 *Contact details: 
		 *White Hall, Room 315
		 *Phone: +1 (607)255-7680. 
		 *email: smk349@cornell.edu 

Study Mnemonic: R2-2019-KARIM-1

********************************************************************************

Code Citation: 

Sabrina Karim (2019).  "0_Master.do and 0_Master.R" (version 1) [Stata and R files].  DOI: https://doi.org/10.7910/DVN/OARGFC
Code Author ORCID:      Sabrina Karim: 
Code last updated: 	14 December 2019
Software and version:   STATA 15 MP  and R version 3.5.3
			Run on Windows 10, 64-bit

#######################################################################


Below we provide a list of associated file names and script files
generating figures and tables in the manuscript and appendix:

Manuscript_Table_1								xxxxxxxxxxxxxxxxxxx
Manuscript_Table_2_reg58.tex					1_APSR_Karim_2019.do
Manuscript_Table_3_Row1_model4.tex				1_APSR_Karim_2019.do
Manuscript_Table_4_interaction2.tex				1_APSR_Karim_2019.do
Manuscript_Table_5_spillover3.tex				1_APSR_Karim_2019.do

Appendix_Figure_1a.png							correlationmatrix.R
Appendix_Figure_1b.png							correlationmatrix.R
Appendix_Figure_2.png							correlationmatrix.R
Appendix_Figure_3.png							2_APSR_Karim_2019_appendix.do
Appendix_Figure_4.png							2_APSR_Karim_2019_appendix.do
Appendix_Map_Prelim_fig.jpg						Map_Grand_Kru.R
Appendix_Section_1_1.txt						2_APSR_Karim_2019_appendix.do
Appendix_Table_2.txt							2_APSR_Karim_2019_appendix.do
Appendix_Table_3.txt							2_APSR_Karim_2019_appendix.do
Appendix_Table_4_spillover2.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_5_Row_1_model3.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_5_Row_2_model56.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_5_Row_3_model33.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_6_mod11.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_7_mod23.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_8_mod33.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_9_indsecurity2.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_10_indabusive2.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_11_indeffective2.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_12_indsecurity4.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_13_indabusive5.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_14_indeffective5.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_15_malepoltest.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_16_mod1.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_17_mod2.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_18_mod3.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_19_firststage2.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_20_polpref3.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_21_polpref4.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_22_abusive233.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_23_abusive23.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_24_effective224.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_25_effective24.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_26.tex   						MultipleComparisonsandMultinomialLogit.R
Appendix_Table_27_pols11.tex					2_APSR_Karim_2019_appendix.do
Appendix_Figure_5.jpg							MultipleComparisonsandMultinomialLogit.R
Appendix_Table_28_abusive34.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_29_effective34.tex				2_APSR_Karim_2019_appendix.do
Appendix_Table_30.tex							MultipleComparisonsandMultinomialLogit.R
Appendix_Table_31.tex							MultipleComparisonsandMultinomialLogit.R
Appendix_Table_32.txt							2_APSR_Karim_2019_appendix.do
Appendix_Table_33_idk2.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_34_idk1.tex						2_APSR_Karim_2019_appendix.do
Appendix_Table_35_test12.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_36_pols111.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_37_abusive2.tex					2_APSR_Karim_2019_appendix.do
Appendix_Table_38_effective.tex					2_APSR_Karim_2019_appendix.do


